import request from '@/utils/request'

function adsList() {
  return request({
    url: '/lejuAdmin/advertise/adsList'
  })
}

function addAds(data) {
  return request({
    url: '/lejuAdmin/advertise/addAds',
    method: 'post',
    data
  })
}

function updateAds(data) {
  return request({
    url: '/lejuAdmin/advertise/updateAds',
    method: 'post',
    data
  })
}

function delAds(id) {
  return request({
    url: `/lejuAdmin/advertise/delAds/${id}`,
    method: 'delete'
  })
}

export {
  adsList,
  addAds,
  updateAds,
  delAds
}
